$('ul.checkbox_list').delegate('input[type=checkbox]', 'change', function () {
    var $lis = $('.listado_articulos > li > div'),
    $checked = $('input:checked');

    if ($checked.length) {
        var selector = $checked.map(function () {
            return '.' + $(this).attr('rel');
        }).get().join(', ');

        $lis.hide('slow').filter(function () {
            return $(this).is(selector);
        }).show('slow');
    } else {
        $lis.show('slow');
    }
});

$('.carousel').carousel({
  interval: 5000
})
$.widget( "custom.catcomplete", $.ui.autocomplete, {
  _renderMenu: function( ul, items ) {
    var that = this,
    currentCategory = "";
    $.each( items, function( index, item ) {
      if ( item.category != currentCategory ) {
        ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
        currentCategory = item.category;
      }
      that._renderItemData( ul, item );
    });
  }
});